import 'package:flutter/material.dart';
import 'package:wanxiang_app/utils/constant.dart';
import 'package:wanxiang_app/widgets/tabs.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'account_textField2.dart';
typedef void ClickCallBack(String content);
class SellTipDialog extends Dialog {
  ClickCallBack callBack;

  SellTipDialog({required this.callBack} );

  @override
  Widget build(BuildContext context) {
    return Material(
        //透明层
        type: MaterialType.transparency,
        child: Container(
          alignment: Alignment.center,
          child:    Container(
              height: 401.h,
              width: 328.w,
              decoration: BoxDecoration(
                  borderRadius: BorderRadius.circular(10.r),
                  gradient: const LinearGradient(      //渐变位置
                      begin: Alignment.topCenter, //右上
                      end: Alignment.bottomCenter, //左下
                      stops: [0.0, 1.0],         //[渐变起始点, 渐变结束点]
                      //渐变颜色[始点颜色, 结束颜色]
                      colors: [Color.fromRGBO(96, 175, 242, 1), Color.fromRGBO(190, 224, 255, 1)]
                  )
              ),
              child: Column(
                crossAxisAlignment: CrossAxisAlignment.center,
                children: [
                  Text('我要卖',style: TextStyle(
                      color: Color(0xFF333333),
                      fontSize: 25.sp
                  ),),

                Row(
                  children: [
                    Image.asset(Constant.IMG_BASE+"sell1.png",width: 16.w,height: 17.h,),
                    Text('专业代售平台，客服随时在线',style: TextStyle(
                        color: Color(0xFF333333),
                        fontSize: 15.sp
                    ),),
                  ],
                ),
                  Container(
                    padding: EdgeInsets.all(10.w),
                    decoration: BoxDecoration(
                        color: const Color(0xFFF2F8FF),
                        borderRadius: BorderRadius.circular(7.r)
                    ),
                    child: Stack(
                      children: [
                        Container(
                          padding: EdgeInsets.all(18.w),
                          decoration: BoxDecoration(
                            borderRadius: BorderRadius.circular(7.r),
                            border: Border.all(width: 1.w, color: const Color(0xFF3F9BEB)),
                          ),
                          child: Column(
                            children: [
                              Row(
                                children: [
                                  Image.asset(Constant.IMG_BASE+"sell2.png",width: 21.w,height: 21.w,),
                                  SizedBox(width: 7.w,),
                                  Text('自行出售',style: TextStyle(
                                      color: Color(0xFF188FF6),
                                      fontSize: 15.sp
                                  ),),
                                ],
                              ),
                              Text('1.卖家自行发布商品信息到平台；',style: TextStyle(
                                  color: Color(0xFF333333),
                                  fontSize: 13.sp
                              ),),
                              Text('1.卖家自行发布商品信息到平台；',style: TextStyle(
                                  color: Color(0xFF333333),
                                  fontSize: 13.sp
                              ),),
                              Text('1.卖家自行发布商品信息到平台；',style: TextStyle(
                                  color: Color(0xFF333333),
                                  fontSize: 13.sp
                              ),),
                              Text('1.卖家自行发布商品信息到平台；',style: TextStyle(
                                  color: Color(0xFF333333),
                                  fontSize: 13.sp
                              ),),
                            ],
                          ),
                        ),
                        Positioned(child: Image.asset(Constant.IMG_BASE+"sell3.png",width: 60.w,height: 47.h,),
                        right: 0,bottom: 0,
                        )
                      ],
                    ) 
                  ),

                  
                ],
              )
          )
        )

    );
  }
}